package com.aaa.three.controller;

import com.aaa.three.aop.Log;
import com.aaa.three.entity.Doctor;
import com.aaa.three.entity.Registered;
import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PACKAGE_NAME: com.aaa.three.controller
 * @NAME: DoctorController
 * @USER: Tprairie
 * @DATE: 2022/2/17
 * @PROJECT_NAME: three
 */
@RestController
@RequestMapping("/doct")
public class DoctorController {
    @Autowired
    private DoctorService doctorServiceImpl;
    @RequestMapping("/listdate")
    public AjaxResult listDate(){
        return doctorServiceImpl.listDate();
    }
    @RequestMapping("/listTwo")
    public AjaxResult listTwoSchedule(Doctor doctor){
        return doctorServiceImpl.listTwoSchedule(doctor);
    }
    @RequestMapping("/listOne")
    public AjaxResult listOneSchedule(Doctor doctor){
        return doctorServiceImpl.listOneSchedule(doctor);
    }
    @RequestMapping("/updateRe")
    @Log("诊断")
    public AjaxResult updateRegistration(Registered registered){
        return doctorServiceImpl.updateRegistration(registered);
    }
}
